<script lang="ts" setup>
import { store } from '../store'
import { useGlobalState } from '../Hooks/useGlobalState'
const state = useGlobalState()
</script>
<template>
    <div class="store-child1-container">
        <div>当前是child1组件</div>
        <el-button @click="state.increment()">count: {{  state.count }}</el-button>
    </div>
</template>
<style scoped>
.store-child1-container {
    border: 1px solid #efefef;
    padding: 20px;
    margin-top:10px;
}
</style>